package com.oocl.o2o.admin.service.impl;

import java.util.List;

import javax.annotation.Resource;
import javax.print.attribute.standard.MediaSize.NA;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.oocl.o2o.admin.dao.FailReasonDao;
import com.oocl.o2o.admin.entity.FailReason;
import com.oocl.o2o.admin.service.FailReasonService;

@Service(value="failReasonServiceImpl")
public class FailReasonServiceImpl implements FailReasonService{

	@Resource(name="failReasonDaoImpl")
	private FailReasonDao failReasonDao;
	
	@Override
	public FailReason findByMerchantId(String merchantId) {
		// TODO Auto-generated method stub
		return failReasonDao.findByMerchantId(merchantId);
	}

	@Override
	public FailReason findByMerchantUname(String uname) {
		// TODO Auto-generated method stub
		return failReasonDao.findByMerchantUname(uname);
	}

	@Override
	@Transactional
	public FailReason add(FailReason failReason) {
		// TODO Auto-generated method stub
		return failReasonDao.add(failReason);
	}

	@Override
	public List<FailReason> findAll() {
		// TODO Auto-generated method stub
		return failReasonDao.findAll();
	}

	@Override
	@Transactional
	public FailReason update(FailReason failReason) {
		// TODO Auto-generated method stub
		return failReasonDao.update(failReason);
	}

	@Override
	@Transactional
	public FailReason deleteByMerchantId(String merchantId) {
		// TODO Auto-generated method stub
		return failReasonDao.deleteByMerchantId(merchantId);
	}

	@Override
	@Transactional
	public FailReason delete(String id) {
		// TODO Auto-generated method stub
		return failReasonDao.delete(id);
	}

}
